﻿@namespace BootstrapBlazor
@inherits BootstrapComponentBase

@if (ToastList.Any())
{
    <div @ref="@Element" class="@ContainerClass" style="@Style" @attributes="@AdditionalAttributes">
        <CascadingValue Value="@this" IsFixed>
            @foreach (var toast in ToastList.OrderBy(x => x.TimeStamp))
            {
                @toast.ToastInstance
            }
        </CascadingValue>
    </div>
}